
discouncfftdata()
function discouncfftdata() {
    //解码
    var companyNamesss=decodeURI(getQueryString('companyName'))
    console.log(companyNamesss)
    var company="";
    if(companyNamesss==''){
        company="空"
    }else {
        company=decodeURI(getQueryString('companyName'))
    }
    //初始化 省
    var user_data = {
    }
    var succCallBack = function (data, status, response) {
        console.log(data)
        if(data.errorCode == 0){
            var tab_data=data.group;
            var cer = '';
            if(tab_data == ''){
                cer = '<option value=""></option>'
                $("#geta").html(cer);
            }else{

                cer = '<option value="" disabled="disabled" selected>'+company+'</option><option value="">空</option>'
                for(var i=0; i<tab_data.length; i++){
                    cer += '<option value="'+tab_data[i].id+'">'+tab_data[i].organization_name+'</option>'
                }
                $("#geta").html(cer);
            }
        }
    };
    web.doAjax(root.inter.getGroup, 'post', user_data, succCallBack);

}
function suretn() {
    var companName="";
    var companyId="";
    if($("#geta option:selected").text()=='空'){
        companName="";
        companyId="0";
    }else {
        companName=$("#geta option:selected").text();
        companyId=$("#geta").val()
    }
    $.ajax({
        contentType: "application/json;charset=UTF-8",
        url:root.member.updatePushmanCompany,
        cache: false,  //禁用缓存
        type: "POST",
        dataType:'json',
        data: JSON.stringify({
            "inviteCode":getQueryString('inviteCode'),
            "companyId":companyId,
            "companyName":companName,
            "operateUser":JSON.parse(decodeURIComponent(web.readCookie("loginData"))).user.name,

        }),
        success: function (data) {
            /*parent.layer.closeAll();*/
            window.parent.reloddad();
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        },
        error: function () {
            $.Huimodalalert('失败！',2000);
        }
    })
}